<script type="text/javascript">
  //debugger;
  if (window.parent == window)
  {
    location.replace("opener_main.htm" + location.search);
  }
  else
  {
    if (parent.__openTearOffWindowFromSharePoint__)
    {
      parent.__openTearOffWindowFromSharePoint__(location.search);
      history.back();
    }
  }
  /*
  if(window.parent == window)
  {
  location.replace("scripts/Innovator.aspx" + location.search);
  }
  else
  {
  if (parent.__openTearOffWindowFromSharePoint__)
  {
  parent.__openTearOffWindowFromSharePoint__(location.search);
  history.back();
  }
  }
  */
</script>
